import 'package:json_annotation/json_annotation.dart';

part 'car_detail_bean.g.dart';

@JsonSerializable()
class CarDetailBean {
  String licnum;
  String reason;
  String checkuser;
  String checktime;
  String perdritype;
  String isvalid;
  String vender;
  String carnum;
  String ischeck;
  String franum;
  String bindTime;
  String buydate;
  String sim;
  String model;
  String brand;
  String notice;
  String createtime;
  String districtName;
  String platnum;
  String platecolor;
  String branchnum;
  String engnum;
  String manufacture;
  String photourl;
  String schName;
  String devnum;
  String updatetime;
  String inscode;
  String assign;
  int photo;
  int termtype;

  CarDetailBean(
      {this.licnum,
      this.reason,
      this.checkuser,
      this.checktime,
      this.perdritype,
      this.isvalid,
      this.vender,
      this.carnum,
      this.ischeck,
      this.franum,
      this.bindTime,
      this.buydate,
      this.sim,
      this.model,
      this.brand,
      this.notice,
      this.createtime,
      this.districtName,
      this.platnum,
      this.platecolor,
      this.branchnum,
      this.engnum,
      this.manufacture,
      this.photourl,
      this.schName,
      this.devnum,
      this.updatetime,
      this.inscode,
      this.assign,
      this.photo,
      this.termtype});

  CarDetailBean.fromJson(Map<String, dynamic> json) {
    this.licnum = json['licnum'];
    this.reason = json['reason'];
    this.checkuser = json['checkuser'];
    this.checktime = json['checktime'];
    this.perdritype = json['perdritype'];
    this.isvalid = json['isvalid'];
    this.vender = json['vender'];
    this.carnum = json['carnum'];
    this.ischeck = json['ischeck'];
    this.franum = json['franum'];
    this.bindTime = json['bindTime'];
    this.buydate = json['buydate'];
    this.sim = json['sim'];
    this.model = json['model'];
    this.brand = json['brand'];
    this.notice = json['notice'];
    this.createtime = json['createtime'];
    this.districtName = json['districtName'];
    this.platnum = json['platnum'];
    this.platecolor = json['platecolor'];
    this.branchnum = json['branchnum'];
    this.engnum = json['engnum'];
    this.manufacture = json['manufacture'];
    this.photourl = json['photourl'];
    this.schName = json['schName'];
    this.devnum = json['devnum'];
    this.updatetime = json['updatetime'];
    this.inscode = json['inscode'];
    this.assign = json['assign'];
    this.photo = json['photo'];
    this.termtype = json['termtype'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['licnum'] = this.licnum;
    data['reason'] = this.reason;
    data['checkuser'] = this.checkuser;
    data['checktime'] = this.checktime;
    data['perdritype'] = this.perdritype;
    data['isvalid'] = this.isvalid;
    data['vender'] = this.vender;
    data['carnum'] = this.carnum;
    data['ischeck'] = this.ischeck;
    data['franum'] = this.franum;
    data['bindTime'] = this.bindTime;
    data['buydate'] = this.buydate;
    data['sim'] = this.sim;
    data['model'] = this.model;
    data['brand'] = this.brand;
    data['notice'] = this.notice;
    data['createtime'] = this.createtime;
    data['districtName'] = this.districtName;
    data['platnum'] = this.platnum;
    data['platecolor'] = this.platecolor;
    data['branchnum'] = this.branchnum;
    data['engnum'] = this.engnum;
    data['manufacture'] = this.manufacture;
    data['photourl'] = this.photourl;
    data['schName'] = this.schName;
    data['devnum'] = this.devnum;
    data['updatetime'] = this.updatetime;
    data['inscode'] = this.inscode;
    data['assign'] = this.assign;
    data['photo'] = this.photo;
    data['termtype'] = this.termtype;
    return data;
  }
}
